﻿using Inovout.Models;

namespace Inovout.Security
{
    public partial class Privilege : DataObject
    {
        public virtual string Name { get; set; }

        public virtual Resource Resource { get; set; }

        public virtual Operation Operation { get; set; }

        public Privilege()
        {
            
        }
        public Privilege(Resource resource, Operation operation)
        {
            this.Resource = resource;
            this.Operation = operation;
            this.identifier = this.ToString();
        }
        private string identifier;
        public virtual string Identifier
        {
            get
            {
                return identifier;
            }
            
        }
    }
}
